<%@ Control Language="C#" AutoEventWireup="true" CodeFile="WebUserControl_acctype.ascx.cs" Inherits="WebUserControl" %>
&nbsp;
<asp:DropDownList ID="DropDownList1" runat="server" AutoPostBack="True" DataSourceID="SqlDataSource1"
    DataTextField="DESCRIPT" DataValueField="CODE" OnSelectedIndexChanged="DropDownList1_SelectedIndexChanged1"
    Width="250px">
</asp:DropDownList><asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:DB2011ConnectionString %>" SelectCommand="SELECT DESCRIPT, CODE FROM TYPE WHERE (VARFIELD = @VARFIELD) and descript is not null order by descript">
    <SelectParameters>
        <asp:Parameter DefaultValue="ACCTYPE" Name="VARFIELD" Type="String" />
    </SelectParameters>
</asp:SqlDataSource>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<asp:DropDownList ID="DropDownList2" runat="server" AutoPostBack="True" DataTextField="ACCNAME"
    DataValueField="ACCCODE" Width="217px" OnSelectedIndexChanged="DropDownList2_SelectedIndexChanged">
</asp:DropDownList>